package org.example.classTest;

/**
 * @description:
 * @author: farprt
 * @create: 2022-08-15 16:49
 **/
public class ClassLoaderDemo {

    public static void main(String[] args) {
        ClassLoader cl=ClassLoaderDemo.class.getClassLoader();
        while (cl!=null){
            System.out.println(cl.getClass().getName());
            cl=cl.getParent();
        }
        System.out.println(String.class.getClassLoader());

    }
}